﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResultadoControlo.ascx.cs" Inherits="HRP.Private.Pesquisa.ResultadoControlo" %>
<%@ Import Namespace="HRP.Utilidades" %>
<asp:Repeater ID="ResultadosRepeater" runat="server">
    <HeaderTemplate>
        <ul class="media-list search-result">
    </HeaderTemplate>
    <ItemTemplate>
        <li class="media">
            <a style='<%#!string.IsNullOrEmpty(Eval("Thumbnail").ToString()) ? "": "display:none;" %>' class="pull-left" href="<%#Eval("Url") %>">
                <img class="media-object" style='<%#!string.IsNullOrEmpty(Eval("Thumbnail").ToString()) ? "": "display:none;" %>' src="<%#Eval("Thumbnail") %>" alt="Image search">
            </a>
            <div class="media-body">
                <h4 class="media-heading"><a href="<%#Eval("Url") %>"></a><%#Eval("Title") %> <span class="label label-default floatRight">Última modificação: <%#((DateTime)Eval("CreationDate")).ToString(DefinicoesSite.DataFormato) %></span></h4>
                <a href="<%#Eval("Url") %>"><%#Eval("FullUrl") %></a>
                <p><%# Eval("Summary").ToString().Length<=300 ?Eval("Summary").ToString() : Eval("Summary").ToString().Substring(0,300)+"..."  %></p>
            </div>
        </li>
    </ItemTemplate>
    <FooterTemplate>
        </ul>
    </FooterTemplate>
</asp:Repeater>
